package com.greet.service;

import com.greet.dto.EmployeeDTO;
import com.greet.dto.EmployeeLoginDTO;
import com.greet.dto.EmployeePageQueryDTO;
import com.greet.dto.PasswordEditDTO;
import com.greet.entity.Employee;
import com.greet.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    boolean addNewEmployee(EmployeeDTO employeeDTO);

    PageResult getPageQuery(EmployeePageQueryDTO employeePageQueryDTO);

    void setStatus(Integer status, Long id);

    void updateEmp(EmployeeDTO employeeDTO);

    Employee selectById(Long id);

    void editPassword(PasswordEditDTO passwordEditDTO);
}
